#include <stdio.h>
int fac(int m, int n)
{
    int ans = 1;
    for(int i = 1; i <= n; i++)
    {
        ans *= m;
    }
    return ans;
}
int main()
{
    int n, ans = 0;
    scanf("%d", &n);
    for (int i = 1; i <= n; i++)
    {
        ans += fac(2, i);
    }
    printf("result = %d", ans);
    return 0;
}